﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Gola.VN.Scb.Web.Common.Models
{
    public class CustomerChangeInfoModel
    {
        public int Id { get; set; }

        [Required(ErrorMessage = Constants.Interface.UserNameRequired)]
        [DisplayName(Constants.Interface.UserName)]
        public string UserName { get; set; }

        [Required(ErrorMessage = Constants.Interface.FullNameRequired)]
        [DisplayName(Constants.Interface.FullName)]
        public string FullName { get; set; }

        [Required(ErrorMessage = Constants.Interface.AddressRequired)]
        [DisplayName(Constants.Interface.Address)]
        public string Address { get; set; }

        [Required(ErrorMessage = Constants.Interface.EmailRequired)]
        [RegularExpression(Constants.EmailFormat, ErrorMessage = Constants.Interface.EmailInvalid)]
        [DisplayName(Constants.Interface.Email)]
        public string Email { get; set; }

        [DisplayName(Constants.Interface.Logo)]
        public string Image { get; set; }

        public string NewImage { get; set; }

        [DisplayName(Constants.Interface.Phone)]
        [Required(ErrorMessage = Constants.Interface.PhoneRequired)]
        [RegularExpression(Constants.PhoneFormat, ErrorMessage = Constants.Interface.PhoneInvalid)]
        public string PhoneNumber { get; set; }
    }
}